package com.kordar.admin.kernel.util;

import java.util.HashMap;
import java.util.Map;

public class LayuiHelper {
    public static String bgColor(int index) {
        switch (index) {
            case 1:
                return "layui-bg-red";
            case 2:
                return "layui-bg-orange";
            case 3:
                return "layui-bg-green";
            case 4:
                return "layui-bg-cyan";
            case 5:
                return "layui-bg-blue";
            case 6:
                return "layui-bg-black";
            default:
                return "layui-bg-gray";
        }
    }

    public static Map<Integer, String> ynLabels() {
        Map<Integer, String> map = new HashMap<>();
        map.put(0, "否");
        map.put(1, "是");
        return map;
    }

    public static Map<Integer, String> statusLabels() {
        Map<Integer, String> map = new HashMap<>();
        map.put(0, "关闭");
        map.put(1, "激活");
        return map;
    }
}
